package com.abocode.aichat.core.domain.repository;

import java.util.List;

import com.abocode.aichat.core.domain.entity.Message;
import org.springframework.data.mongodb.repository.MongoRepository;

public interface MessageRepository extends MongoRepository<Message, String> {
     Message findByFirstName(String firstName);
     List<Message> findByLastName(String lastName);

}
